
public class HourWorker extends Worker{

	private double hourRate;

	HourWorker(String name,int id, double hourRate){
		super(name, id);
		this.hourRate = hourRate;
	}

	@Override
	public double calculate() {
		
		return 20.8 * 8 * hourRate;
	}

}
